
import {http} from '../../uilti/uilti'
Page({
  data: {
  list:[],
  show:false,
    
  },
  onShows(){
  this.setData({
    show:true
  })
 },
 onHides(){
  this.data.show=false
  this.setData({
    show:this.data.show
  })
 },

  
  onLoad(e) {
    console.log(e.id);
  this.getList(e.id)
  },
  async getList(e){
    console.log(e);
   let {data:res}=await  http({
     url:"https://api.it120.cc/small4/shop/goods/detail?id="+ e,
     method:"POST"
   })
this.data.list=res.data
this.setData({
  list:this.data.list
})
console.log(this.data.list);
  },

})